<?php
/**
 * View AJAX - ASSOCIA CONTATTI A contact LaFabbrica.org
 * 
 * @author     luigi.pastore (gigi@la-fabbrica.org)
 * @created    17-mag-2011
 * @package    LaFabbrica
 * @copyright  Copyright (c) 2011 Luigi Pastore
 */
?>
<tr class="unselectable" id="contact_<?php echo $this->contact['contact_id'] ?>">
    <th>
        <span><?php echo $this->contact['contact_firstname'] ?> <?php echo $this->contact['contact_lastname'] ?></span>
        <div class="details">
            <h4><strong>Tel: </strong> <?php echo $this->contact['contact_phone'] ?></h4>
            <h4><strong>Email: </strong> <?php echo $this->contact['contact_email'] ?></h4>
        </div>	    
    </th>
    <td>
        <ul>
            <li class="complex">
                <span class="left">
                    <label>Ruolo:</label>
                    <select class="field select addr" name="contacts[<?php echo $this->contact['contact_id'] ?>][]" id="contact_<?php echo $this->contact['contact_id'] ?>">
                    <?php foreach( $this->contact_roles AS $k => $role ) : ?>
                        <option value="<?php echo $k ?>" <?php echo ( $this->contact['fab_contacts_role'] == $k ) ? 'selected="selected"' : ''?>><?php echo  $role ?></option>
                    <?php endforeach; ?>
                    </select>
                </span>
            </li>
        </ul>
    </td>
    <td title="Operazioni">
        <span class="actions">
            <a class="del" id="unlink-contact-<?php echo $this->contact['contact_id']?>" href="#">
                &nbsp;
            </a>
        </span>
    </td>
</tr>
